<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.typehandlers.base.ReverseWrapperBase</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.typehandlers-module.html">Package&nbsp;typehandlers</a> ::
        <a href="pybindgen.typehandlers.base-module.html">Module&nbsp;base</a> ::
        Class&nbsp;ReverseWrapperBase
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class ReverseWrapperBase</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_86" name="uml_class_diagram_for_pybindge_86">
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#NO_GIL_LOCKING" title="pybindgen.typehandlers.base.ReverseWrapperBase.NO_GIL_LOCKING" alt="" coords="91,28,616,47"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="Base constructor" alt="" coords="91,49,616,68"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#set_error_return" title="pybindgen.typehandlers.base.ReverseWrapperBase.set_error_return" alt="" coords="91,68,616,87"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state" title="pybindgen.typehandlers.base.ReverseWrapperBase.reset_code_generation_state" alt="" coords="91,87,616,105"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate_python_call" title="Generates the code (into self.before_call) to call into Python, storing the result in the variable &#39;py_retval&#39;; should also check for call error." alt="" coords="91,105,616,124"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" title="Generate the wrapper" alt="" coords="91,124,616,143"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html" title="Generic base for all reverse wrapper generators." alt="" coords="89,11,617,144"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html" title="Class that generates a proxy virtual method that calls a similarly named python method." alt="" coords="16,173,235,200"/>
<area shape="rect" href="pybindgen.cppattribute.PySetter-class.html" title="generates a setter, for use in a PyGetSetDef table" alt="" coords="285,173,421,200"/>
<area shape="rect" href="pybindgen.converter_functions.PythonToCConverter-class.html" title="Utility function that converts a single Python object into a C value." alt="" coords="472,173,717,200"/>
<area shape="rect" href="pybindgen.cppattribute.CppStaticAttributeSetter-class.html" title="A setter for a C++ class static attribute." alt="" coords="97,229,324,256"/>
<area shape="rect" href="pybindgen.cppattribute.CppInstanceAttributeSetter-class.html" title="A setter for a C++ instance attribute." alt="" coords="375,229,617,256"/>
</map>
  <img src="uml_class_diagram_for_pybindge_86.gif" alt='' usemap="#uml_class_diagram_for_pybindge_86" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Generic base for all reverse wrapper generators.</p>
  <p>Reverse wrappers all have the following general structure in 
  common:</p>
  <ol start="1">
    <li>
      'declarations' -- variable declarations; for compatibility with older
      C compilers it is very important that all declarations come before 
      any simple statement.  Declarations can be added with the 
      add_declaration() method on the 'declarations' attribute.  Two 
      standard declarations are always predeclared: '&lt;return-type&gt; 
      retval', unless return-type is void, and 'PyObject *py_retval';
    </li>
    <li>
      'code before call' -- this is a code block dedicated to contain all 
      code that is needed before calling into Python; code can be freely 
      added to it by accessing the 'before_call' (a CodeBlock instance) 
      attribute;
    </li>
    <li>
      'call into python' -- this is realized by a PyObject_CallMethod(...) 
      or similar Python API call; the list of parameters used in this call 
      can be customized by accessing the 'build_params' (a 
      BuildValueParameters instance) attribute;
    </li>
    <li>
      'code after call' -- this is a code block dedicated to contain all 
      code that must come after calling into Python; code can be freely 
      added to it by accessing the 'after_call' (a CodeBlock instance) 
      attribute;
    </li>
    <li>
      A 'return retval' statement (or just 'return' if return_value is 
      void)
    </li>
  </ol>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">return_value</span>,
        <span class="summary-sig-arg">parameters</span>,
        <span class="summary-sig-arg">error_return</span>=<span class="summary-sig-default">None</span>)</span><br />
      Base constructor</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.__init__">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___65-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for___init___65-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___65" name="call_graph_for___init___65">
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#get_c_error_return" title="container.ContainerReturnValue.get_c_error_return()" alt="" coords="711,5,1223,37"/>
<area shape="rect" href="pybindgen.converter_functions.PythonToCConverter-class.html#__init__" title="converter_functions.PythonToCConverter.__init__()" alt="" coords="5,173,496,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="__init__()" alt="" coords="545,257,649,289"/>
<area shape="rect" href="pybindgen.cppattribute.CppInstanceAttributeSetter-class.html#__init__" title="cppattribute.CppInstanceAttributeSetter.__init__()" alt="" coords="9,229,492,261"/>
<area shape="rect" href="pybindgen.cppattribute.CppStaticAttributeSetter-class.html#__init__" title="cppattribute.CppStaticAttributeSetter.__init__()" alt="" coords="21,285,480,317"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#__init__" title="cppmethod.CppVirtualMethodProxy.__init__()" alt="" coords="35,341,467,373"/>
<area shape="rect" href="pybindgen.typehandlers.base.BuildValueParameters-class.html#__init__" title="BuildValueParameters.__init__()" alt="" coords="811,61,1123,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#__init__" title="CodeBlock.__init__()" alt="" coords="864,117,1069,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#__init__" title="DeclarationsScope.__init__()" alt="" coords="827,173,1107,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" title="ParseTupleParameters.__init__()" alt="" coords="809,229,1124,261"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#_generate_gil_code" title="_generate_gil_code()" alt="" coords="861,285,1072,317"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#get_c_error_return" title="inttype.IntReturn.get_c_error_return()" alt="" coords="779,341,1155,373"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#get_c_error_return" title="pyobjecttype.PyObjectReturnValue.get_c_error_return()" alt="" coords="699,397,1235,429"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#get_c_error_return" title="stringtype.StdStringReturn.get_c_error_return()" alt="" coords="735,453,1199,485"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#get_c_error_return" title="voidtype.VoidReturn.get_c_error_return()" alt="" coords="765,509,1168,541"/>
</map>
  <img src="call_graph_for___init___65.gif" alt='' usemap="#call_graph_for___init___65" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_error_return"></a><span class="summary-sig-name">set_error_return</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">error_return</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.set_error_return">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_set_error_retur-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_set_error_retur-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_set_error_retur" name="call_graph_for_set_error_retur">
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate" title="cppmethod.CppVirtualMethodProxy.generate()" alt="" coords="7,5,452,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#set_error_return" title="set_error_return()" alt="" coords="503,5,689,37"/>
</map>
  <img src="call_graph_for_set_error_retur.gif" alt='' usemap="#call_graph_for_set_error_retur" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="reset_code_generation_state"></a><span class="summary-sig-name">reset_code_generation_state</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.reset_code_generation_state">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_reset_code_gene_4-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_reset_code_gene_4-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_reset_code_gene_4" name="call_graph_for_reset_code_gene_4">
<area shape="rect" href="pybindgen.cppclass.CppHelperClass-class.html#_generate_forward_declarations" title="cppclass.CppHelperClass._generate_forward_declarations()" alt="" coords="5,117,565,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state" title="reset_code_generation_state()" alt="" coords="613,117,915,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.BuildValueParameters-class.html#clear" title="BuildValueParameters.clear()" alt="" coords="963,5,1251,37"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#clear" title="CodeBlock.clear()" alt="" coords="1017,61,1196,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#clear" title="DeclarationsScope.clear()" alt="" coords="980,117,1233,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#clear" title="ParseTupleParameters.clear()" alt="" coords="963,173,1251,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#_generate_gil_code" title="_generate_gil_code()" alt="" coords="1001,229,1212,261"/>
</map>
  <img src="call_graph_for_reset_code_gene_4.gif" alt='' usemap="#call_graph_for_reset_code_gene_4" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="generate_python_call"></a><span class="summary-sig-name">generate_python_call</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Generates the code (into self.before_call) to call into Python, 
      storing the result in the variable 'py_retval'; should also check for
      call error.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.generate_python_call">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" class="summary-sig-name">generate</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">code_sink</span>,
        <span class="summary-sig-arg">wrapper_name</span>,
        <span class="summary-sig-arg">decl_modifiers</span>=<span class="summary-sig-default"><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">static</code><code class="variable-quote">'</code><code class="variable-group">)</code></span>,
        <span class="summary-sig-arg">decl_post_modifiers</span>=<span class="summary-sig-default"><code class="variable-group">(</code><code class="variable-group">)</code></span>)</span><br />
      Generate the wrapper</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.generate">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_generate_29-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for_generate_29-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_generate_29" name="call_graph_for_generate_29">
<area shape="rect" href="pybindgen.container.ContainerParameter-class.html#convert_c_to_python" title="container.ContainerParameter.convert_c_to_python()" alt="" coords="740,20,1249,52"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_c_to_python" title="container.ContainerRefParameter.convert_c_to_python()" alt="" coords="725,76,1264,108"/>
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#convert_python_to_c" title="container.ContainerReturnValue.convert_python_to_c()" alt="" coords="729,132,1260,164"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassParameter.convert_c_to_python()" alt="" coords="685,188,1304,220"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassPtrParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassPtrParameter.convert_c_to_python()" alt="" coords="671,244,1319,276"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassRefParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassRefParameter.convert_c_to_python()" alt="" coords="671,300,1319,332"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate" title="cppmethod.CppVirtualMethodProxy.generate()" alt="" coords="7,720,452,752"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" title="generate()" alt="" coords="503,720,620,752"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate_python_call" title="cppmethod.CppVirtualMethodProxy.generate_python_call()" alt="" coords="715,356,1275,388"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_cleanup" title="CodeBlock.write_cleanup()" alt="" coords="861,412,1128,444"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_code" title="CodeBlock.write_code()" alt="" coords="876,468,1113,500"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_error_check" title="CodeBlock.write_error_check()" alt="" coords="843,524,1147,556"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#declare_variable" title="DeclarationsScope.declare_variable()" alt="" coords="815,580,1175,612"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#get_code_sink" title="DeclarationsScope.get_code_sink()" alt="" coords="825,636,1164,668"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_parameters" title="ParseTupleParameters.get_parameters()" alt="" coords="800,692,1189,724"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#is_empty" title="ParseTupleParameters.is_empty()" alt="" coords="832,748,1157,780"/>
<area shape="rect" href="pybindgen.typehandlers.base-module.html#join_ctype_and_name" title="join_ctype_and_name()" alt="" coords="879,804,1111,836"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.CodeSink-class.html#indent" title="codesink.CodeSink.indent()" alt="" coords="859,860,1131,892"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.CodeSink-class.html#unindent" title="codesink.CodeSink.unindent()" alt="" coords="847,916,1143,948"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.FileCodeSink-class.html#writeln" title="codesink.FileCodeSink.writeln()" alt="" coords="840,972,1149,1004"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.MemoryCodeSink-class.html#flush_to" title="codesink.MemoryCodeSink.flush_to()" alt="" coords="815,1028,1175,1060"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.NullCodeSink-class.html#writeln" title="codesink.NullCodeSink.writeln()" alt="" coords="837,1084,1152,1116"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntParam-class.html#convert_c_to_python" title="inttype.IntParam.convert_c_to_python()" alt="" coords="800,1140,1189,1172"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#convert_python_to_c" title="inttype.IntReturn.convert_python_to_c()" alt="" coords="797,1196,1192,1228"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectParam-class.html#convert_c_to_python" title="pyobjecttype.PyObjectParam.convert_c_to_python()" alt="" coords="745,1252,1244,1284"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#convert_python_to_c" title="pyobjecttype.PyObjectReturnValue.convert_python_to_c()" alt="" coords="717,1308,1272,1340"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#convert_python_to_c" title="stringtype.StdStringReturn.convert_python_to_c()" alt="" coords="753,1364,1236,1396"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#convert_python_to_c" title="voidtype.VoidReturn.convert_python_to_c()" alt="" coords="784,1420,1205,1452"/>
</map>
  <img src="call_graph_for_generate_29.gif" alt='' usemap="#call_graph_for_generate_29" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Class Variables</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="NO_GIL_LOCKING"></a><span class="summary-name">NO_GIL_LOCKING</span> = <code title="False">False</code>
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">return_value</span>,
        <span class="sig-arg">parameters</span>,
        <span class="sig-arg">error_return</span>=<span class="sig-default">None</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.__init__">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___65-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for___init___65-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___65" name="call_graph_for___init___65">
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#get_c_error_return" title="container.ContainerReturnValue.get_c_error_return()" alt="" coords="711,5,1223,37"/>
<area shape="rect" href="pybindgen.converter_functions.PythonToCConverter-class.html#__init__" title="converter_functions.PythonToCConverter.__init__()" alt="" coords="5,173,496,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__" title="__init__()" alt="" coords="545,257,649,289"/>
<area shape="rect" href="pybindgen.cppattribute.CppInstanceAttributeSetter-class.html#__init__" title="cppattribute.CppInstanceAttributeSetter.__init__()" alt="" coords="9,229,492,261"/>
<area shape="rect" href="pybindgen.cppattribute.CppStaticAttributeSetter-class.html#__init__" title="cppattribute.CppStaticAttributeSetter.__init__()" alt="" coords="21,285,480,317"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#__init__" title="cppmethod.CppVirtualMethodProxy.__init__()" alt="" coords="35,341,467,373"/>
<area shape="rect" href="pybindgen.typehandlers.base.BuildValueParameters-class.html#__init__" title="BuildValueParameters.__init__()" alt="" coords="811,61,1123,93"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#__init__" title="CodeBlock.__init__()" alt="" coords="864,117,1069,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#__init__" title="DeclarationsScope.__init__()" alt="" coords="827,173,1107,205"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__" title="ParseTupleParameters.__init__()" alt="" coords="809,229,1124,261"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#_generate_gil_code" title="_generate_gil_code()" alt="" coords="861,285,1072,317"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#get_c_error_return" title="inttype.IntReturn.get_c_error_return()" alt="" coords="779,341,1155,373"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#get_c_error_return" title="pyobjecttype.PyObjectReturnValue.get_c_error_return()" alt="" coords="699,397,1235,429"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#get_c_error_return" title="stringtype.StdStringReturn.get_c_error_return()" alt="" coords="735,453,1199,485"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#get_c_error_return" title="voidtype.VoidReturn.get_c_error_return()" alt="" coords="765,509,1168,541"/>
</map>
  <img src="call_graph_for___init___65.gif" alt='' usemap="#call_graph_for___init___65" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Base constructor</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>return_value</code></strong> - type handler for the return value</li>
        <li><strong class="pname"><code>parameters</code></strong> - a list of type handlers for the parameters</li>
    </ul></dd>
    <dt>Overrides:
        object.__init__
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="generate"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">generate</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">code_sink</span>,
        <span class="sig-arg">wrapper_name</span>,
        <span class="sig-arg">decl_modifiers</span>=<span class="sig-default"><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">static</code><code class="variable-quote">'</code><code class="variable-group">)</code></span>,
        <span class="sig-arg">decl_post_modifiers</span>=<span class="sig-default"><code class="variable-group">(</code><code class="variable-group">)</code></span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.base-pysrc.html#ReverseWrapperBase.generate">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for_generate_29-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for_generate_29-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for_generate_29" name="call_graph_for_generate_29">
<area shape="rect" href="pybindgen.container.ContainerParameter-class.html#convert_c_to_python" title="container.ContainerParameter.convert_c_to_python()" alt="" coords="740,20,1249,52"/>
<area shape="rect" href="pybindgen.container.ContainerRefParameter-class.html#convert_c_to_python" title="container.ContainerRefParameter.convert_c_to_python()" alt="" coords="725,76,1264,108"/>
<area shape="rect" href="pybindgen.container.ContainerReturnValue-class.html#convert_python_to_c" title="container.ContainerReturnValue.convert_python_to_c()" alt="" coords="729,132,1260,164"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassParameter.convert_c_to_python()" alt="" coords="685,188,1304,220"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassPtrParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassPtrParameter.convert_c_to_python()" alt="" coords="671,244,1319,276"/>
<area shape="rect" href="pybindgen.cppclass_typehandlers.CppClassRefParameter-class.html#convert_c_to_python" title="cppclass_typehandlers.CppClassRefParameter.convert_c_to_python()" alt="" coords="671,300,1319,332"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate" title="cppmethod.CppVirtualMethodProxy.generate()" alt="" coords="7,720,452,752"/>
<area shape="rect" href="pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate" title="generate()" alt="" coords="503,720,620,752"/>
<area shape="rect" href="pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate_python_call" title="cppmethod.CppVirtualMethodProxy.generate_python_call()" alt="" coords="715,356,1275,388"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_cleanup" title="CodeBlock.write_cleanup()" alt="" coords="861,412,1128,444"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_code" title="CodeBlock.write_code()" alt="" coords="876,468,1113,500"/>
<area shape="rect" href="pybindgen.typehandlers.base.CodeBlock-class.html#write_error_check" title="CodeBlock.write_error_check()" alt="" coords="843,524,1147,556"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#declare_variable" title="DeclarationsScope.declare_variable()" alt="" coords="815,580,1175,612"/>
<area shape="rect" href="pybindgen.typehandlers.base.DeclarationsScope-class.html#get_code_sink" title="DeclarationsScope.get_code_sink()" alt="" coords="825,636,1164,668"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#get_parameters" title="ParseTupleParameters.get_parameters()" alt="" coords="800,692,1189,724"/>
<area shape="rect" href="pybindgen.typehandlers.base.ParseTupleParameters-class.html#is_empty" title="ParseTupleParameters.is_empty()" alt="" coords="832,748,1157,780"/>
<area shape="rect" href="pybindgen.typehandlers.base-module.html#join_ctype_and_name" title="join_ctype_and_name()" alt="" coords="879,804,1111,836"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.CodeSink-class.html#indent" title="codesink.CodeSink.indent()" alt="" coords="859,860,1131,892"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.CodeSink-class.html#unindent" title="codesink.CodeSink.unindent()" alt="" coords="847,916,1143,948"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.FileCodeSink-class.html#writeln" title="codesink.FileCodeSink.writeln()" alt="" coords="840,972,1149,1004"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.MemoryCodeSink-class.html#flush_to" title="codesink.MemoryCodeSink.flush_to()" alt="" coords="815,1028,1175,1060"/>
<area shape="rect" href="pybindgen.typehandlers.codesink.NullCodeSink-class.html#writeln" title="codesink.NullCodeSink.writeln()" alt="" coords="837,1084,1152,1116"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntParam-class.html#convert_c_to_python" title="inttype.IntParam.convert_c_to_python()" alt="" coords="800,1140,1189,1172"/>
<area shape="rect" href="pybindgen.typehandlers.inttype.IntReturn-class.html#convert_python_to_c" title="inttype.IntReturn.convert_python_to_c()" alt="" coords="797,1196,1192,1228"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectParam-class.html#convert_c_to_python" title="pyobjecttype.PyObjectParam.convert_c_to_python()" alt="" coords="745,1252,1244,1284"/>
<area shape="rect" href="pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#convert_python_to_c" title="pyobjecttype.PyObjectReturnValue.convert_python_to_c()" alt="" coords="717,1308,1272,1340"/>
<area shape="rect" href="pybindgen.typehandlers.stringtype.StdStringReturn-class.html#convert_python_to_c" title="stringtype.StdStringReturn.convert_python_to_c()" alt="" coords="753,1364,1236,1396"/>
<area shape="rect" href="pybindgen.typehandlers.voidtype.VoidReturn-class.html#convert_python_to_c" title="voidtype.VoidReturn.convert_python_to_c()" alt="" coords="784,1420,1205,1452"/>
</map>
  <img src="call_graph_for_generate_29.gif" alt='' usemap="#call_graph_for_generate_29" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>Generate the wrapper</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>code_sink</code></strong> - a CodeSink object that will receive the code</li>
        <li><strong class="pname"><code>wrapper_name</code></strong> - C/C++ identifier of the function/method to generate</li>
        <li><strong class="pname"><code>decl_modifiers</code></strong> - list of C/C++ declaration modifiers, e.g. 'static'</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:32 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
